<template>
    <div class="container">
        <video autoplay muted loop src="../../assets/second_center_video.mp4"></video>
        <div class="side"></div>
<!--        <div class="title" style="top: 94px;">{{label1}}</div>-->
<!--        <div class="title" style="top: 690px;left:70px;text-align:left">{{label3}}</div>-->
<!--        <div class="title" style="top: 690px;right:70px;text-align:right">{{label4}}</div>-->
      <div class="triangle" :style="{'--rcjg': '\'' + (label3 || ' ' )+ '\'', '--rcfzhj': '\'' + (label4 || ' ') + '\''}">

      <!--        <div class="triangle" :style="{'&#45;&#45;rcjg': '\'' + (data.rcjg || ' ' )+ '\'', '&#45;&#45;rcfzhj': '\'' + (data.rcfzhj || ' ') + '\''}">-->
              <!--            <div> {{data.rcqzhy || ' '}}</div>-->
              <div >{{label1}}</div>
            <div class="number" style="margin-top:120px"> {{data.rlzyhy || ' '}}</div>
            <div class="label">{{label2}}</div>
        </div>
    </div>
</template>
<script>
export default {
    props: {
        data: Object,
        label1: String,
        label2: String,
        label3: String,
        label4: String

    }
}
</script>
<style lang="less" scoped>
.container {
    position:  relative;
    width: 736px;
    height: 940px;
    box-sizing: border-box;
}
video {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    mix-blend-mode: screen;
}
.side {
    position: relative;
    height: 100%;
    background-image: url('../../assets/center_top_left.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 258px auto;
    &::before {
      content: " ";
      position: absolute;
      width: 258px;
      background-position: right center;
      height: 100%;
      background-image: url('../../assets/center_top_right.png');
      background-repeat: no-repeat;
      background-size: 258px auto;
      right: 0;
    }
  }
  .title {
    font-family: PingFangSC-Regular;
    font-size: 20px;
    color: #FFFFFF;
    letter-spacing: 0;
    text-align: center;
    font-weight: 400;
    position: absolute;
    width: 100%;

  }
  .triangle {
    width: 466px;
    height: 516px;
    background-image: url('../../assets/tirangle.svg');
    background-size: 466px auto;
    background-position: center;
    background-repeat: no-repeat;
    left: calc(50% - 233px);
    position: absolute;
    top: 132px;
    font-family: DINPro-Medium;
    font-size: 20px;
    color: #fff;
    text-align: center;
    line-height: 128px;
    letter-spacing: 1.92px;
    font-weight: 500;
    &::before {
        content: var(--rcjg);
        width: 128px;
        height: 128px;
        background-repeat: no-repeat;
        background-image: url('../../assets/triangle_left.svg');
        position: absolute;
        bottom: -32px;
        left: -64px;
    }
    &::after {
        content: var(--rcfzhj);
        width: 128px;
        height: 128px;
        background-repeat: no-repeat;
        background-image: url('../../assets/triangle_right.svg');
        position: absolute;
        bottom: -32px;
        right: -64px;

    }
  }
  .number {
    font-family: LetsgoDigital-Regular;
    font-size: 72px;
    color: #64E6E2;
    letter-spacing: 0;
    text-align: center;
    line-height: 76px;
    font-weight: 700;
  }
  .label {
    font-family: PingFangSC-Regular;
    font-size: 20px;
    color: #FFFFFF;
    letter-spacing: 0;
    text-align: center;
    line-height: 26px;
    font-weight: 400;
    white-space: pre-line;
  }
</style>
